<template>
	<view class="container">
		<view class="boc" @click="flowDetails" v-if="menus.includes('finance/account')">
			<view class="title">每日收益</view>
			<view class="content">
				<view class="tips">了解您的每日收益</view>
				<view class="info">清晰明了方便快捷了解您每天的收益</view>
				<view class="details">查看详情</view>
			</view>
		</view>
		<view class="boc" @click="goRecord" v-if="menus.includes('finance/flowingwater')">
			<view class="title">提现记录</view>
			<view class="content">
				<view class="tips">了解您每天的提现记录</view>
				<view class="info">通过日期查询了解您每天的提现记录</view>
				<view class="details">查看详情</view>
			</view>
		</view>
		<view class="boc" @click="goCommission" v-if="menus.includes('finance/commission')">
			<view class="title">分佣订单明细</view>
			<view class="content">
				<view class="tips">了解您的分佣订单明细</view>
				<view class="info">导出及查看分账情况</view>
				<view class="details">查看详情</view>
			</view>
		</view>
	</view>
</template>
<script>
	import {
		mapState,
	} from 'vuex'
	export default {
		data() {
			return {

			}
		},
		computed: {
			...mapState({
				menus: state => state.menus,
			}),
		},
		methods: {
			goRecord() {
				uni.navigateTo({
					url: "/pages/home/Record/Record"
				})
			},
			flowDetails() {
				uni.navigateTo({
					url: "/pages/home/flowDetails/flowDetails"
				})
			},
			goCommission() {
				uni.navigateTo({
					url: "/pages/home/commission/commission"
				})
			}
		}
	}
</script>
<style lang="scss" scoped>
	.container {
		.boc {

			.title {
				margin-left: 20rpx;
				margin-top: 20rpx;
				margin-bottom: 20rpx;
				font-size: 40rpx;
				font-weight: 700;
				color: #000;
			}

			.content {
				width: 89%;
				height: 240rpx;
				margin: 0 auto;
				background-color: #E0CDA5;
				border-radius: 15rpx;
				padding: 25rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-between;

				.tips {
					font-size: 34rpx;
					font-weight: 600;
					color: #000;
				}

				.info {
					font-size: 28rpx;
					color: #1f1f1f;
				}

				.details {
					width: 150rpx;
					height: 60rpx;
					background-color: #fff;
					display: flex;
					justify-content: center;
					align-items: center;
					font-size: 28rpx;
					color: #1f1f1f;
					border-radius: 10rpx;
				}
			}
		}

	}
</style>